<?php

//2017-6-8 by ma 补货通知

class b2c_ctl_admin_goods_supple extends desktop_controller{
    var $workground = 'b2c_ctl_admin_goods';

    function index(){
        $this->finder('b2c_mdl_goods_supple',array(
            'title'=>app::get('b2c')->_('缺货信息列表'),
            'actions'=>array(array('label'=>app::get('b2c')->_('删除'),'submit'=>'index.php?app=b2c&ctl=admin_goods_supple&act=dodelete')),
            'use_buildin_recycle'=>false,
            ));
    }

    function dodelete(){
        $this->begin('index.php?app=b2c&ctl=admin_goods_supple&act=index');
        $object = $this->app->model('member_goods');
        $this->end($object->delete($_POST,app::get('b2c')->_('选项删除成功')));    
    }
}
